class Student:

    def __init__(self,parm1,parm2):
        self.name = parm1
        self.age = parm2
        print("调用构造函数")

    def run(self):
        print("打印构造方法里的初始化值："+self.name)
s1 = Student("张三","19")
print(s1.name)
print(s1.age)
#s1.run()
s2 = Student("李四","20")
print(s2.name)
print(s2.age)
#s2.run()

